package testServer;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;

public class ServerGUI extends JFrame{
	
	public JLabel time, start;
    public JTextArea user;
    public JButton end;
    
    public ServerGUI(){
    	
    	BorderLayout border = new BorderLayout();
    	
    	setVisible(true);
    	setSize(500, 500);
    	setLayout(border);
    	setTitle("Server");
    	
    	this.time = new JLabel();
    	this.start = new JLabel();
    	
    	this.user = new JTextArea();
    	this.end = new JButton("Beenden");
    	
    	start.setBounds(20, 20, 100, 40);
    	time.setBounds(20, 80, 300, 40);
    	user.setBounds(20, 200, 300, 200);
    	end.setBounds(20, 340, 60, 30);
    	
    	setDefaultCloseOperation(EXIT_ON_CLOSE);
    	
    	add(time, BorderLayout.PAGE_START);
    	add(start, BorderLayout.PAGE_START);
    	add(user, BorderLayout.CENTER);
    	add(end, BorderLayout.PAGE_END);
    	//pack();
    }
    
}
